﻿<Provisioner CustomMasterUrl="{{Root}}">
  <FixupWebACL RespectInheritanceSetting="false" RoleAssignments="BreakClean" SyncGroupQuickLaunch="true">
    <SiteGroup Action="Create" Name="{{SPWeb.Title}} Owners" Description="Test - {{SPWeb.Description}}"
      AllowMembersEditMembership="false" AllowRequestToJoinLeave="true"
      AutoAcceptRequestToJoinLeave="true" OnlyAllowMembersViewMembership="false"
      RequestToJoinLeaveEmailSetting="administrator@wss-server.com"
      Owner="WSS-SERVER\administrator" />
    <SiteGroup Action="Create" Name="{{SPWeb.Title}} Members"  />
    <AssociateSiteGroup Name="{{SPWeb.Title}} Owners" Role="Owner" />
    <AssociateSiteGroup Name="{{SPWeb.Title}} Members" Role="Member" />

    <!--<PrincipaleRole Action="Add" Type="SiteGroup" Name="integration testweb Owners" Role="Full Control" />-->
    
    <AddMembersToSiteGroup GroupName="{{SPWeb.Title}} Owners" Members="{{Property.Owners}}" />
  </FixupWebACL>
  <ProvisionLists>
    <List Title="Site Information List">
      <!-- Defaults: Description="" Template="100" -->
      <ListItem SyncWithPropertyBag="true">
        <Column FieldName="WebTitle">{{SPWeb.Title}}</Column>
        <Column FieldName="WebDescription">{{SPWeb.Description}}</Column>
      </ListItem>
    </List>
    <List Title="Roshan's List"></List>
  </ProvisionLists>
  <ProvisionWebs>
    <Web Title="Human Resources" Description="Human Resources Site"  Template="STS#1" Url="human_resources" LCID="1033" UniquePermissions="true" InheritTopNav="true">
      <Actions>
        <ProvisionLists>
          <List Title="Site Information List">
            <ListItem>
              <Column FieldName="Title">{{Property.Title}} - Human Resources</Column>
              <Column FieldName="ClientName">{{ParentWeb.Title}}</Column>
              <Column FieldName="ProjectName">Human Resources</Column>
              <Column FieldName="WebTitle">{{SPWeb.Title}}</Column>
              <Column FieldName="WebDescription">{{SPWeb.Description}}</Column>
            </ListItem>
          </List>
          <List Title="Test List" EnableContentTypes="true">
            <AddCTypes>
              <ContentTypeRef Name="ProjectSite" />
            </AddCTypes>
          </List>
        </ProvisionLists>
      </Actions>
    </Web>
  </ProvisionWebs>
</Provisioner>
